# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=gulkan
pkgver=0.16.0
pkgrel=5
pkgdesc="GLib library for Vulkan abstraction"
url="https://gitlab.freedesktop.org/xrdesktop/gulkan"
arch="all"
license="MIT AND CC-BY-SA-4.0"
depends_dev="gobject-introspection-dev"
makedepends="$depends_dev
	gdk-pixbuf-dev
	glslang
	graphene-dev
	libdrm-dev
	libxkbcommon-dev
	meson
	vulkan-loader-dev
	"
source="https://gitlab.freedesktop.org/xrdesktop/gulkan/-/archive/$pkgver/gulkan-$pkgver.tar.gz"
subpackages="$pkgname-libs $pkgname-dev"
options="!check" # Requires a working Vulkan driver

build() {
	abuild-meson \
		-Dapi_doc=false \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
b05441ab8569845a6031ce4779ba3c68e06a184feb0886def3abbde521ef63df8e91c4e92102316a1a46427073dcac9ff95aca19b769b7dc2d0fc2e8a562385c  gulkan-0.16.0.tar.gz
"
